package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.pojo.Menu;
import com.bwie.pojo.User;
import com.bwie.vo.PageInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<String> getRoleList(@Param("userId") Integer userId);

    List<Menu> selesctgetMenuListByUserId(@Param("userId") Integer userId);

    Page<User> getShopUserList(@Param("page") Page<User> page,@Param("pageInfoVo") PageInfoVo pageInfoVo);
}